/*		Filename: 	fee_manager.h
 *		Author:		彭望
 *		Date:		2012-01-10
 *		Use:		定义卡管理系统的结构
 */

#ifndef FEE_MANAGER_H
#define FEE_MANAGER_H

#include "public.h"
#include "logger.h"
#include "card_info.h"
#include "card_manager.h"

class CFeeManager
{
		public:
			CFeeManager(const CCardManagerPtr& ptr);
			//改变余额,充值 delta >= 0, 扣费 delta <= 0
			RetCode_t change_balance(CCardInfo& info, double delta);

		private:
			CCardManagerPtr m_cmPtr;
			Logger::Logger_t& logger;
};

typedef boost::shared_ptr<CFeeManager> CFeeManagerPtr;


#endif
